﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RealTimeCharts.LineChart
{
    public class AxisScaleProperty
    {
        public ValueRange valueRange;
        public SCALE_SHOW_MODE mode;
        private ValueRange scaleRange;

        public int scaleCounts; // 刻度的个数
        //  public int scalePixelInterval; //刻度间隔像素
        //public SCALE_MODE scaleMode; //刻度显示模式

        public Font scaleTextFont;
        public Brush scaleTextBrush;
        public string scaleTextFormat;

        public ScaleLineProperty lineProperty;

        public AxisScaleProperty()
        {
            scaleCounts = 5;
            scaleTextFont = new Font("Arial", 10);
            scaleTextBrush = new SolidBrush(Color.Black);
            scaleTextFormat = "0:F2";
            valueRange = new ValueRange();
            scaleRange = new ValueRange();
            lineProperty = new ScaleLineProperty();
        }

        public AxisScaleProperty(AxisScaleProperty wnd)
        {
            this.scaleCounts = wnd.scaleCounts;
            this.scaleTextFont = wnd.scaleTextFont;
            this.scaleTextBrush = wnd.scaleTextBrush;
            valueRange = wnd.valueRange.Clone();
            scaleRange = wnd.scaleRange.Clone();
            this.lineProperty = wnd.lineProperty.Clone();
        }

        public AxisScaleProperty Clone()
        {
            return new AxisScaleProperty(this);
        }
    }
}
